<?php

namespace maotool\core\facade;

use maotool\core\Container;
use maotool\core\Facade;
use maotool\core\Instance;

/**
 * @see \maotool\core\Config
 * @package maotool\core
 * @mixin \maotool\core\Config
 * @method static bool has(string $name) 检测配置是否存在
 * @method static mixed get(string $name = null, mixed $default = null) 获取配置参数 为空则获取所有配置
 * @method static bool set(string $name, mixed $value = null) 设置配置参数 name为数组则为批量设置
 * @method static bool setProxy(string $name, mixed $value = null) 设置配置参数 name为数组则为批量设置
 * @method static bool remove(string $name) 移除配置
 * @method static bool reset() 重置配置参数
 */
class Config extends Facade
{

    /**
     * 获取Facade对应的容器
     * @return Instance
     */
    protected static function getFacadeContainer()
    {
        return Container::getContainer()->getInstanceByClass(\maotool\core\Config::class);
    }

}
